﻿using System.Collections.Generic;
using Medianamik.Service.ActiveDirectory.Repository;
using StructureMap;

namespace Medianamik.Service.ActiveDirectory.UI.Control
{
    public class MedianamikGroups : GroupsDropDownList
    {
        protected override IEnumerable<string> AllGroups
        {
            get 
            {
                //var membershipRepo = ObjectFactory.GetInstance<IMembershipRepository>();
                var membershipRepo = new Container(new Registratrion.RepositoryRegistry()).GetInstance<IMembershipRepository>();
                return membershipRepo.GetAllGroupNames();
            }
        }
    }
}